home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 11: TSX-11 / Linux Cubed Series 11 - TSX-11 Vol 1.iso / sbin / bootutil.1 / bootutil / bootutils / mount / etc / rc < prev   
Encoding:
Text File  |  1993-07-01  |  903 b   |  39 lines

  1. # /etc/rc
  2. #
  3. # These commands are executed at boot time by init(8).
  4. # User customization should go in /etc/rc.local.
  5.  
  6. PATH=/bin:/usr/bin:/etc
  7.  
  8. # Check the integrity of all filesystems
  9. /bin/fsck -A -a
  10. # If there was a failure, drop into single-user mode.
  11. if [ $? -gt 1 ] ; then
  12.     echo fsck failed.  Please reboot.
  13.     sh
  14. fi
  15.  
  16. # Remount the root filesystem in read-write mode
  17. /etc/mount -n -o remount /dev/hda3 /
  18.  
  19. # remove /etc/mtab* so that mount will create it with a root entry
  20. /bin/rm -f /etc/mtab* /etc/nologin /etc/utmp
  21.  
  22. # mount file systems in fstab (and create an entry for /)
  23. # but not NFS because TCP/IP is not yet configured
  24. /etc/mount -avt nonfs
  25.  
  26. # start the update(8) sync demon
  27. /etc/update &
  28.  
  29. # remove stale locks (must be done after mount -a!)
  30. /bin/rm -f /usr/spool/locks/* /usr/spool/uucp/LCK..* /tmp/.X*lock
  31.  
  32. # enable swapping
  33. /etc/swapon -a
  34.  
  35. # do any local stuff
  36. /bin/sh /etc/rc.local
  37.  
  38. exit 0
  39.